package com.mes.service.yzl;

import com.mes.dao.yzl.SalechartMapper;
import com.mes.entity.hpf.SalePlanDetail;
import com.mes.entity.yzl.Condition;
import com.mes.entity.yzlExtend.ExtendProductor;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional
public class SalechartServiceImpl implements SalechartService{

    @Resource
    private SalechartMapper salechartMapper;

    @Override
    public List<SalePlanDetail> saleChartList(Condition condition) {
        return salechartMapper.saleChartList(condition);
    }

	@Override
	public List<ExtendProductor> saleChartReturnList(Condition condition) {
		// TODO Auto-generated method stub
		return salechartMapper.saleChartReturnList(condition);
	}

	@Override
	public List<SalePlanDetail> saleChartAllList() {
		// TODO Auto-generated method stub
		return salechartMapper.saleChartAllList();
	}

	@Override
	public List<ExtendProductor> saleChartReturnAllList() {
		// TODO Auto-generated method stub
		return salechartMapper.saleChartReturnAllList();
	}

	@Override
	public int countSaleChart(Condition condition) {
		// TODO Auto-generated method stub
		return salechartMapper.countSaleChart(condition);
	}

	@Override
	public int countSaleChartReturn(Condition condition) {
		// TODO Auto-generated method stub
		return salechartMapper.countSaleChartReturn(condition);
	}
}
